﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Q7.BevTree
{
    public class BevNodeNonePrioritySelector : BevNodePrioritySelector
    {
        public BevNodeNonePrioritySelector(string debugName)
            : base(debugName)
        {
        }
 
        protected override bool DoEvaluate(BevNodeInputParam input)
        {
            if (CheckIndex(_currentSelectedIndex))
            {
                if (Children[_currentSelectedIndex].Evaluate(input))
                {
                    return true;
                }
            }

            return base.DoEvaluate(input);
        }
    }
}
